package com.neu.icloud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neu.icloud.entity.WorkOrder;
import com.neu.icloud.mapper.WorkOrderMapper;
import com.neu.icloud.service.WorkOrderService;
@Service
public class WorkOrderServiceImpl implements WorkOrderService{
	
	@Autowired
	private WorkOrderMapper workMapper;
	
	@Override
	public int saveWorkOrder(WorkOrder workOrder) {
		// TODO Auto-generated method stub
		return workMapper.saveWorkOrder(workOrder);
	}

	@Override
	public int updateWorkOrder(WorkOrder workOrder) {
		// TODO Auto-generated method stub
		return workMapper.updateWorkOrder(workOrder);
	}

	@Override
	public int deleteWorkOrder(String workOrderId) {
		// TODO Auto-generated method stub
		return workMapper.deleteWorkOrder(workOrderId);
	}

	@Override
	public List<WorkOrder> selectAllWork() {
		// TODO Auto-generated method stub
		return workMapper.selectAllWork();
	}

	@Override
	public List<String> selectByPlanId(Integer planId) {
		// TODO Auto-generated method stub
		return workMapper.selectByPlanId(planId);
	}


}
